/** @file  print.c
 *  @brief Print the database 
 * 
 *  Function to print the records in Pretty format 
 *   
 *  @author Karthik M 
 *  @bug No  bugs.
 */



#include "header.h"

void print (DATA  rec)
{

	printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
	printf(" \tDetails of %s \n",rec.name);
	printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
	printf (" Name     :%s\n",rec.name);
	printf (" Age      :%02d\n",rec.age);
	printf (" Gender   :%s\n",(rec.gender ==1)?"MALE":"FEMALE");
	printf (" Status   :%s\n", (rec.status ==1)? "SINGLE":"MARRIED");

}
